#!/bin/bash -x

#echo "Waiting for tests to finish"
#i=2;
#sleep 1;
#while [  $i -ge 2 ]; do
#	sleep 1;
#        i=`ps aux | grep "./tests.sh" | wc -l`;
#done

echo "Tests are finished cleaning up."

ssh -p $SGNL_RESPONDER_PORT root@$SGNL_RESPONDER 'bash -s' < $SGNL_KILL "/root/server -v\$"
ssh -p $SGNL_INITIATOR_PORT root@$SGNL_INITIATOR 'bash -s' < $SGNL_KILL "/root/client 2001:15:d842:400b:9c28:4745:f530:508a\$"
